package com.qing.springcloud.feignService;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "stock-server",path = "/stock")
public interface StockFeignService {

    @GetMapping(path = "/reduce")
    String reduce(@RequestParam("productId") Integer productId,
                  @RequestParam("num")Integer num);
}
